#include "FrogSketcher.h"

#include <iostream>

FrogSketcher::FrogSketcher(Frog * frog)
{
	this->frog = frog;
}

FrogSketcher::~FrogSketcher(void)
{
}

void FrogSketcher::draw()
{
	Color * frogLineColor = this->frog->getLineColor();
	Color * frogBackgroundColor = this->frog->getElementColor();
	Texture * frogTexture = this->frog->getTexture();
	Position * frogPosition = this->frog->getPosition();
	float frogRadius = this->frog->getRadius();

	if(frogTexture != NULL) {
		SketcherHelper::getInstance()->drawCircle(frogPosition,frogRadius,frogTexture,frogLineColor);
	}else {
		SketcherHelper::getInstance()->drawCircle(frogPosition,frogRadius,frogBackgroundColor,frogLineColor);
	}
	
	
}
